package com.scwatch.core.service;

import com.scwatch.common.orm.RowSide;
import com.scwatch.core.domain.Programback;
import com.scwatch.core.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import java.util.Map;

/**
 * Created by rh006 on 2017/7/25.
 */
public interface ProgramBackService {

    public Page<Programback> findAll(Map<String, String[]> params,
                                     Pageable pageable);

    public RowSide<Programback> findSide(Map<String, String[]> params,
                                         Programback bean, Integer position, Sort sort);

   /* public List<Program> getList();*/

    public Programback get(Integer id);

   /* public String replace(String s);*/

    public Programback save(Programback bean, Integer siteId, User user);

    public Programback update(Programback bean);

    public Programback delete(Integer id);

    public Programback[] delete(Integer[] ids);
}
